$OpenBSD: patch-wmapm_h,v 1.1.1.1 2001/01/11 00:13:12 naddy Exp $
--- wmapm/wmapm.h.orig	Tue Jan 11 16:53:43 2000
+++ wmapm/wmapm.h	Wed Jan 10 12:35:40 2001
@@ -27,12 +27,10 @@
 
 #define WMAPM_VERSION "3.1"
 
-#ifdef FreeBSD
+#if defined(FreeBSD) || defined(__OpenBSD__)
 # define APMDEV "/dev/apm"
-#else
-# ifdef Linux
-#  define APMDEV "/proc/apm"
-# endif
+#elif defined(Linux)
+# define APMDEV "/proc/apm"
 #endif
 
 typedef struct my_apm_info {
@@ -45,7 +43,9 @@ typedef struct my_apm_info {
     int        battery_flags;
     int        battery_percentage;
     int        battery_time;
+#ifdef Linux
     int        using_minutes;
+#endif
 } my_apm_info;
 
 #ifdef Linux
